Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 50 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Agent note — task 17220 claimed by lane any-d (PR shepherd pass)
|
|
Agent note — task 17220 closing PR #8510 as SUPERSEDED (same fix landed via PR #8649)
|
Closes #7908.
The session WebSocket's
recordsframe handler inpkgs/id/web/src/world.tsshape-trusted its frame, unlike the guardedsnapshot/eventcases in the samereceive()switch: a stringrecordsrendered per-character entries, an array per-index entries, a scalar silently rendered an empty world, and a non-stringnext_afterwas echoed back to the server verbatim as the pagination cursor.isWorldRecordsFrameguard besideisWorldSnapshot/isWorldEvent:recordsmust be a plain object (absent stays an empty page, as before) andnext_aftera string or null/absent. Wrong-shape frames go through the existingrejectFrame()path — no rendered-records change, no cursor echo, the in-flight fetch stays open for the next well-formed frame.world-records.test.tsdelivers string/array/numeric/booleanrecordsand numeric/objectnext_afterframes and pins the rejection, then verifies the next well-formed frame completes the fetch (including the id(web): world records view shows a lone stale page when an input event restarts a paginated fetch — fresh pages are silently discarded #1458 coalesced refetch, which runs as a fresh first-page request with noafter).Verification in the worktree:
bunx vitest run src/world-records.test.ts— 7/7 pass (existing id(web): world records view shows a lone stale page when an input event restarts a paginated fetch — fresh pages are silently discarded #1458 coalescing and Design: define, don't assign — untrusted keys are stored with define semantics, never through the __proto__ setter #2953 define-semantics tests stay green).bun run typecheck— clean.bun run test(full web suite) — 712 passed, 9 skipped, 1 failed: thesearch-panel.test.tsaria-label expectation, proven pre-existing on clean main earlier this shift (task 14016) and untouched by this change.Queue task 14271, lane code-j (triaged inline in the same session).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.